package ypmits.cms.view.windows {
	import flash.display.Sprite;

	/**
	 * @author Dave Lenz
	 */
	public class Back extends Sprite {
		
		private var back : Sprite;
		
		
		public function Back ( ) {
			draw();
		}
		
		
		private function draw() : void {
			back = new Sprite();
			addChild( back );
			
			redraw();
		}

		
		public function resize( width : Number, height : Number ) : void {
			this.width = width;
			this.height = height;
		}

		
		private function redraw() : void {
			back.graphics.clear();
			back.graphics.beginFill( 0 );
			back.graphics.drawRoundRect(0, 0, 286, 269, 12 );
			back.graphics.endFill();
			
			back.x = -( back.width * .5 );
			back.y = -( back.height * .5 );
		}
	}
}
